import myaxios from "../MyAxios";
import BaseUrl from "@/http/BaseUrl"
const BMDURL=BaseUrl.BMDURL

const EassayApi={
    //搜索全部文章信息
    queryAll(){
        let url=BMDURL+'/Eassay/querAll'
        let params={page:1}
        return myaxios.get(url,params)
    },
    //添加文章信息
    AddEassay(params){
        let url=BMDURL+'/Eassay/add'
        return myaxios.post(url,params)
    },
    //删除文章
    //修改文章
    DelEassay(params){
        let url=BMDURL+'/Eassay/dele'
        return myaxios.post(url,params)
    },
    UpdateEassay(params){
        let url=BMDURL+'/Eassay/update'
        return myaxios.post(url,params)
    },
    queryById(params){
        let url=BMDURL+'/Eassay/queryById'
        return myaxios.get(url,params)
    },

}

export default EassayApi